﻿using System;

namespace CSharp_1209.Exam4
{
    public class DemoGeneric<T> where T : Employee
    {
        public void AcceptDetails(T e)
        {
            Console.WriteLine("Enter name: ");
            e.Name = Console.ReadLine();
        }

        public void ShowDet(T e)
        {
            Console.WriteLine(e.Name);
        }
    }
}
